﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Web.Services;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.MODEL;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for BGM_MAS_ExpenseGroup
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class BGM_MAS_ExpenseGroup : System.Web.Services.WebService
    {
        IBLL_BGM_MAS_ExpenseGroup bll = new B_BGM_MAS_ExpenseGroup();

        [WebMethod]
        public List<M_BGM_MAS_ExpenseGroup> GetFull(string bgm_source_seq, bool bLeafOnly)
        {
            return (List<M_BGM_MAS_ExpenseGroup>)bll.GetFull(bgm_source_seq, bLeafOnly);
        }

        [WebMethod]
        public List<M_BGM_MAS_ExpenseGroup> GetList(string bgm_source_seq)
        {
            return (List<M_BGM_MAS_ExpenseGroup>)bll.GetList(bgm_source_seq);
        }

        [WebMethod]
        public M_BGM_MAS_ExpenseGroup GetInfo(string seq)
        {
            return bll.GetInfo(seq);
        }
    }
}
